package com.ronghui.cash.parambean;

import com.ronghui.cash.util.Validator;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

public class UserRegisterBean {
	@NotNull(message = "手机号不能为空")
	@Pattern(regexp = Validator.REGEX_MOBILE, message = "手机号格式错误")
	private String mobile;

	@NotNull(message = "密码不能为空")
	@Pattern(regexp = Validator.REGEX_PASSWORD, message = "密码格式错误")
	private String password;

	/**
	 * 验证码
	 */
	@NotNull(message = "验证码不能为空")
	@Pattern(regexp = Validator.VCODE, message = "验证码格式错误")
	private String vcode;

	/**
	 * 邀请码
	 */
	private String invitationCode;

	public String getInvitationCode() {
		return invitationCode;
	}

	public void setInvitationCode(String invitationCode) {
		this.invitationCode = invitationCode;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getVcode() {
		return vcode;
	}

	public void setVcode(String vcode) {
		this.vcode = vcode;
	}

}
